package com.qisimanxiang.dalaran.sentinel.tokenserver;

import com.qisimanxiang.dalaran.sentinel.tokenserver.tokenserver.TokenServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.consul.ConsulProperties;

import javax.annotation.PostConstruct;

@SpringBootApplication
@EnableDiscoveryClient
public class DalaranSentinelTokenServerApplication {


    @Autowired
    private TokenServer tokenServer;

    @PostConstruct
    public void init() {
        System.out.println("token server ok!!!");
    }

    public static void main(String[] args) {
        SpringApplication.run(DalaranSentinelTokenServerApplication.class, args);
    }

}
